package states
{
	import assets.Images;
	
	import flash.display.Sprite;
	import flash.text.TextField;

	public class Menu extends Sprite
	{
		public function Menu()
		{
		}
		
		private var showing:int = 0;
		
		public function show(i:int):void
		{
			showing = i;
			if (showing == 1)
				addChild(Images.level1);
			else if (showing == 2)
				addChild(Images.level2);
			else if (showing == 3)
				addChild(Images.paused);
		}
		
		public function hide():void
		{
			if (showing == 1)
				removeChild(Images.level1);
			else if (showing == 2)
				removeChild(Images.level2);
			else if (showing == 3)
				removeChild(Images.paused);
			showing = 0;
		}
	}
}